﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BLL.BLL
{
  public  class ManagerForm
    {
        public static bool CheckExistForm(Form frm, string name)
        {
            foreach (Form fr in frm.MdiChildren)
                if (fr.Name == name)
                    return true;
            return false;

        }
        public static void ActiveChildren(Form frm, string name)
        {
            foreach (Form fr in frm.MdiChildren)
            {
                if (fr.Name == name)
                {
                    fr.Activate();
                    break;
                }
            }

        }
        public static int TongTrang(int soluongdl, int num)
        {
            int kq = (int)(soluongdl / num);
            if (kq * num == soluongdl)
                return kq;
            return kq + 1;

        }
    }
}
